<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="__STATIC__/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="__STATIC__/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="__STATIC__/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="__STATIC__/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    <style type="text/css">
		    .td1{
		    	width:85px;
		    }
	    	.td2{
	    		text-align: center;
	    	}
	    	.td3 img{
	    		width:80px;height:30px;
	    		display: block;
	    	}
	    	.td4{
	    		width:212px;
	    	}
	    	.td4 .form-control{
	    		border-width:1px;
	    	}
	    	.td5{
	    		text-indent: 1.5em;
	    	}
	    	#logo .td{
	    		line-height: 30px;
	    	}
	    </style>
	</head>
	<body>
		<form action="" method="post">
			<table id="logo" class="table table-hover">
				<tr class="active">
				  <th class="td1">品牌ID</th>
				  <th class="td2">品牌名称</th>
				  <th>品牌logo</th>
				  <th class="td4">排序</th>
				  <th>是否热门</th>
				  <th width="210">操作</th>
				</tr>
				<foreach from="$logoData" key="$k" value="$b">
					<tr>
						<td class="td td1">{$b.bid}</td>
						<td class="td td2">{$b.bname}</td>
						<td class="td td3">
							<img src="__ROOT__/{$b.logo}" alt="" />
						</td>
						<td class="td td4"><input type="text"  value="{$b.sort}" name="{$b.bid}" class="sort form-control" /></td>
						<td class="td td5">
							<if value="$b['is_hot']==1">
								是
							<else/>
								否
							</if>
						</td>
						<td class="td">
							<a href="{|U:'editBrand',array('bid'=>$b['bid'])}" class="btn btn-sm btn-warning">编辑</a>
							<a href="{|U:'del',array('bid'=>$b['bid'])}" class="btn btn-sm btn-danger">删除</a>
						</td>
					</tr>
				</foreach>
			</table>
			<input type="submit" value="进行排序" class="btn btn-block btn-lg btn-inverse"/>
		</form>
	</body>
</html>
